#!/bin/sh
#
# 简单写一下脚本的功能。
#
#
#


if [ $# -ne 0 ]; then
	echo "Usage: this is a empty shell."
	exit
fi

workdir=~/workshop/gitee/3place/

cd $workdir 

for files in `ls -l |grep ^d |awk '{print $NF}'`            
do
	echo $files 
	cd $workdir$files
	if [ -e config ]; then 
		source config
	else
		continue
	fi

	ls $bookname*.md  

	if [ $? -eq 0 ]; then 
#		rm -fv  $bookname*.md
		echo $bookname >> $workdir/have.tarbook.md 
	else 
		echo $bookname >> $workdir/no.tarbook.md 
	fi

	cd $workdir
done
